<?php

namespace common\exception;

use common\enums\ResponseCode;
use common\exception\base\BaseCodeException;

class AssertInvalidArgumentException extends BaseCodeException
{
    /**
     * @param ResponseCode $responseCode
     */
    public function __construct(ResponseCode $responseCode)
    {
        parent::__construct($responseCode->getMessage(), $responseCode->getCode());
    }
}
